<?php
if(!defined('IN_SONG')) exit('No direct script access allowed');

if (IS_DEV) {
    error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
    ini_set('display_errors', 'On');
} 
else {
    error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
    ini_set('display_errors', 'Off');
    ini_set('log_errors', 'On');
    ini_set('error_log', ROOT . DS . 'tmp'. DS .'logs'. DS .'error_'. date('Y-m-d_H') .'.log');
} 

require_once ROOT.DS.'kernel'.DS.'paths.php';
require_once KERNEL.DS.'object.php';
require_once KERNEL.DS.'model.php';
//require_once KERNEL.DS.'form.php';
//require_once KERNEL.DS.'user.php';    
require_once KERNEL.DS.'input.php';
require_once KERNEL.DS.'template.php';
require_once KERNEL.DS.'controller.php';
require_once KERNEL.DS.'url.php';
//require_once KERNEL.DS.'widget.php';
require_once KERNEL.DS.'dispatcher.php'; 
?>
